from model.TestModel import TestModel
from controller.Base import BaseHandler, login_required
import datetime


class IndexHandler(BaseHandler):
    # @login_required
    def get(self, *args, **kwargs):
        if TestModel.test():
            return self.render("bad db")
        else:
            return self.write("good")